export default {
  // 开启命名空间
  namespaced: true,

  // 数据
  state: () => ({
    tomatoinfo: uni.getStorageSync('tomatoinfo') || [],
   
  }),

  // 方法
  mutations: {
    updatetomatoinfo(state, tomatoinfo) {
      state.tomatoinfo = tomatoinfo
      this.commit('m_tomato/savetomatoinfoToStorage')
    },
    savetomatoinfoToStorage(state) {
      uni.setStorageSync('tomatoinfo', state.tomatoinfo)
    },
    
  },
}